<!DOCTYPE html>
<html>

<head>
  <title></title>
  <script type="text/javascript" src="../../lib/svg-compile/parser.js"></script>
</head>

<body>
  <script>
    var data = [
      { type: 'word', value: 'Paper' },
      { type: 'number', value: 100 }
    ];
    var output = parser(data);
    console.log(output);
      // 打印信息如下
    /*
     var output = {
       'type': 'Drawing',
       'body': [{
          "type": "CallExpression",
          "name": "Paper",
          "arguments": [{
            "type": "NumberLiteral",
            "value": "100"
          }]
       }]
     }
    */
  </script>
</body>

</html>